import request from '@/utils/request' // 假设项目中已有请求工具封装

export const getByFarmerId = (farmerId) => {
  return request.get(`/farmer-product-list/farmer/${farmerId}`)
}
// 创建农产品上架记录
export const createFarmerProductList = (data) => {
  return request.post(`/farmer-product-list`, data)
}